package com.tech.platform.cms.common.model;

import lombok.Data;

/**
 * @author shengqiang.wu
 * @date 2020/3/24/024 14:42
 * @desc
 */
@Data
public class CommonResult<T> {

    private int code;

    private String msg;

    private T data;

    public CommonResult(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public CommonResult(int code, String msg, T data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }
}
